<?php
//$vcard = "MECARD:$first_name, $last_name;;TEL:$mobile;EMAIL:$email";
//$vcard = "BEGIN:VCARD\r\n";
//$vcard .= "VERSION:3.0\r\n";
//$vcard .= "FN:$first_name $last_name\r\n";
//$vcard .= "N:$last_name;$first_name ;;;\r\n";
//$vcard .= "ADR;TYPE=home:$address\r\n";
//$vcard .= "EMAIL;TYPE=INTERNET;TYPE=WORK:$email\r\n";
//$vcard .= "TEL;TYPE=CELL:$mobile\r\n";
//$vcard .= "END:VCARD\r\n";
?>
<div class="row">
    <div class="col-sm-2">
        @if($avatar==null)
        <img class="thumbnail" style="width: 152px;height: 152px;margin-bottom: 0px" src="{{Config::get('probackend::config.sites.avatar-default')}}"/>
        @else 
        <img style="width: 152px;height: 152px;margin-bottom: 0px" class="thumbnail" src="{{$avatar}}">
        @endif
    </div>

    <div class="col-sm-4">
        <table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;font-size: 1.3em">
            <tbody>              
                <tr>
                    <td>ID:&nbsp;</td>
                    <td>{{$id}}</td>
                </tr>
                <tr>
                    <td>Email:&nbsp;</td>
                    <td>{{$email}}</td>
                </tr>
                <tr>
                    <td>Fist Name:&nbsp;</td>
                    <td>{{$first_name}}</td>
                </tr>            
                <tr>
                    <td>Last Name:&nbsp;</td>
                    <td>{{$last_name}}</td>
                </tr>     
                <tr>
                    <td>Super User:&nbsp;</td>                    
                    <td>
                        {{$su?"Yes":"No"}}
                    </td>
                </tr>
            </tbody>
        </table>   
    </div>
    <div class="col-sm-5">
        <table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;font-size: 1.3em">
            <tbody>              
                <tr>
                    <td>Mobile:&nbsp;</td>
                    <td>{{$mobile}}</td>
                </tr>
                <tr>
                    <td>Address:&nbsp;</td>
                    <td>{{$address}}</td>
                </tr>
                <tr>
                    <td>Created at:&nbsp;</td>
                    <td>{{$created_at}}</td>
                </tr>            
                <tr>
                    <td>Updated at:&nbsp;</td>
                    <td>{{$updated_at}}</td>
                </tr>
                <tr>
                    <td>Groups:&nbsp;</td>                    
                    <td>
                        @foreach($groups as $group)
                        {{$group->title}},
                        @endforeach
                    </td>
                </tr>
            </tbody>
        </table>   
    </div>



</div>

